<?php
include ('translate.php');
require_once ('logica/session.php');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link type="text/css" href="css/style.css" rel="stylesheet"/>
        <link rel="shortcut icon" href="images/favicon.png"/> 
        <script type="text/javascript" src="js/utilitario.js"></script>
        <!--<script type="text/javascript" src="js/jquery-1.4.4.js"></script>-->

        <script>
    
            function Mostrar(url,varwith,varheight){
                jQuery().colorbox({width:varwith, height:varheight, iframe:true, href: url+".php"});
            }
    
   
    
            function objetoAjax(){ 
                try {
                    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
                } 
                catch (e) {
                    try {
                        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                    } 
                    catch (E) {
                        xmlhttp = false;
                    }
                }
                if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
                    xmlhttp = new XMLHttpRequest();
                }
                return xmlhttp
            } 

    
        </script>
<?php
$mensaje = _("notienepermisosURL");
if (!isset($_SESSION["IdUsuario"])) {
    echo "<script> alert (\"$mensaje\"); </script>";
    echo "<script language=Javascript> location.href=\"index.php\"; </script>";
}
?>
